package com.sptpc.drink.dao;

import com.sptpc.drink.pojo.Category;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

//    根据分类category的名字查询此分类下的所以饮品drink
//    Category selectDrinkByCategoryName(String name);

    //通过名字查询category
    List <Category> selectCategoryByName(String name);

    //查询所以的category
    List<Category> selectAllCategory();
}